package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.domain.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserInfoMapper extends BaseMapper<UserInfo> {
    @Select("SELECT * FROM tb_black_list b INNER JOIN tb_user_info i ON b.`black_user_id`=i.`id` WHERE b.`user_id` = #{id}")
    Page<UserInfo> queryBlackList(Page<UserInfo> pageInfo, @Param("id") Long id);
}
